package com.lvy.hczn.front.system.domain.business;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lvy.hczn.front.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

/**
 * 运输单详情信息，取送货地址信
 *
 * @author yw
 * @date 2023-08-26 19:31:40
 **/
@Data
@TableName("transport_detail")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "运输单详情信息")
public class TransportDetail extends BaseModel<TransportDetail> {

    @ApiModelProperty(value = "取货/送货联系地址")
    private String arriveAddress;

    /**
     * 这里是送货仓库编号 或者 供应商编码
     */
    @ApiModelProperty(value = "取货/送货地编号(仓库编码/供应商编码)")
    private String arriveCode;

    @ApiModelProperty(value = "取货/送货纬度")
    private BigDecimal arriveLatitude;

    @ApiModelProperty(value = "取货/送货经度")
    private BigDecimal arriveLongitude;

    @ApiModelProperty(value = "取货/送货地名称")
    private String arriveName;

    @ApiModelProperty(value = "取货/送货联系人")
    private String arrivePerson;

    @ApiModelProperty(value = "取货/送货联系电话")
    private String arrivePhone;

    @ApiModelProperty(value = "取/送货地类型:0:仓库,1:供应商")
    private Integer arriveType;

    @ApiModelProperty(value = "入库类型")
    private String dataType;

//    @ApiModelProperty(value = "货箱数量")
//    private Integer cartonNum;

    @ApiModelProperty(value = "取货/送货入仓码")
    private String entryCode;

    @ApiModelProperty(value = "1183")
    private String expectedCartonNum;

    @ApiModelProperty(value = "b13")
    private String landmark;
    @ApiModelProperty(value = "b13")
    private String parcelNum;

    @ApiModelProperty(value = "取货/送货取货码")
    private String pickupCode;

    @ApiModelProperty(value = "调拨单号/发货单号/任务单号")
    private String serviceCode;

    @ApiModelProperty(value = "业务类型:0:调拨单号,1:发货单号,2:任务单号")
    private Integer serviceType;

    @ApiModelProperty(value = "取送货顺序")
    private Integer sort;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "总数量")
    private Integer totalNum;

    @ApiModelProperty(value = "总体积")
    private BigDecimal totalVolume;

    @ApiModelProperty(value = "总重量")
    private BigDecimal totalWeight;

    @ApiModelProperty(value = "运输单号")
    private String transportCode;

    @ApiModelProperty(value = "类型:0:取货,1:送货")
    private Integer type;

    @ApiModelProperty(value = "商品详情列表")
    @TableField(exist = false)
    private List<TransportDetailGoods> cartons;
}
